package com.jt.controller;

import com.jt.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class JsonController {
    @RequestMapping("/getjson")
    @ResponseBody
    public User getjson(){
        User user=new User();
        user.setName("111").setId(13);
        return user;
    }
}
